import request from '@/utils/requset'

// 获取图片验证码的接口
export const codeApi = (random) => {
  return request({
    url: `/user-service/user/imageCode/${random}`,
    responseType: 'blob'
  })
}
// 登录的接口
export const loginApi = (data) => {
  return request({
    url: '/user-service/user/login',
    method: 'POST',
    data
  })
}
